package com.xinruke.hostels.dailymanage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName RemainCountQueryDto
 * @date：2019/7/14
 * @version: V1.0.0
 * @description：查询剩余房间数DTO
 */
@ApiModel("查询剩余房间数DTO")
@Data
public class RemainCountQueryDto {

    /**
     * 房型id
     */
    @ApiModelProperty(value = "房型id", required = true)
    @NotNull(message = "房型id不能为空")
    private Integer fangxingId;

    /**
     * 预订开始时间
     */
    @ApiModelProperty(value = "预订开始时间", required = true)
    @NotNull(message = "预订开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 预订离开时间
     */
    @ApiModelProperty(value = "预订离开时间", required = true)
    @NotNull(message = "预订离开时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

}
